<?php

namespace api\web\controller;


use api\home\controller\RestController;
use api\web\model\NavModel;
use think\facade\Db;

class NavController extends RestController
{
    public function index()
    {
        $list = NavModel::with('ejcd')
            ->where('p_id','0')
            ->select();
        $this->success('导航菜单列表',$list);
    }
}